<template>
  <div>
    <div class="flex justify-between">
      
      <div class="title">
        <slot name="prepend" />
        <h1 class="text-xl font-bold leading-xl">
          <slot> </slot>
        </h1>
      </div>

      <div class="title">
        <slot name="rightButtons" />
      </div>

    </div>

    <div class="flex items-center mb-1">
      <slot name="buttons" />
    </div>

    <hr class="border-divider mb-4" />
  </div>
</template>

<script setup>
import { defineProps, defineOptions } from 'vue'
defineOptions({
  name: 'PageTitle'
})
</script>

<style scoped>
.title {
  @apply flex items-center;
  height: 50px;
}
</style>
